<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\controller;

use think\Db;

/**
 * 管理员控制器
 */
class GamePlatform extends AdminBase
{


    
    /**
     * 总包转入游戏列表
     */
    public function transfer_log()
    {

        $this->param['type']=1;
        $this->assign('list', $this->logicGameplathform->getRechargeList($this->param,0,'a.*,c.username','a.create_time desc',50));
        $this->assign('param',$this->param);
        return $this->fetch();
    }
    /**
     * 委托下注列表
     */
    public function king_bets_log()
    {

        $this->param['type']=5;
        $this->assign('list', $this->logicGameplathform->getRechargeList($this->param,0,'a.*,c.username','a.create_time desc',50));
        $this->assign('param',$this->param);
        return $this->fetch();
    }


    /**
     * 游戏下注记录
     */
    public function bets_log()
    {


        $this->param['type']=4;
        $this->assign('list', $this->logicGameplathform->getRechargeList($this->param,0,'a.*,c.username','a.create_time desc',50));
        $this->assign('param',$this->param);
        return $this->fetch();
    }




    /**
     *  总包转游戏记录导出
     */
    public function exportTransferlist()
    {

        $this->param['type']=1;
        $this->logicGameplathform->exportRechargelist($this->param);
    }


    /**
     *  委托下注记录导出
     */
    public function exportKingBetsList()
    {

        $this->param['type']=5;
        $this->logicGameplathform->exportRechargelist($this->param);
    }

    /**
     *  游戏下注记录导出
     */
    public function exportBetsList()
    {

        $this->param['type']=4;
        $this->logicGameplathform->exportRechargelist($this->param);
    }



    /**
     * 审核
     */
    public function  setStatus(){
        $this->jump($this->logicGameplathform->setStatus($this->param));

    }








}
